﻿using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Core
{


    /// <summary>
    /// 返回结果（会覆改掉系统原有的值）
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Result
    {

        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }

        /// <summary>
        /// 执行成功
        /// </summary>
        public bool IsSuccess { get; set; } = true;

        /// <summary>
        /// 提示信息
        /// </summary>
        public string Msg { get; set; }
    }

    /// <summary>
    /// 返回结果（会覆改掉系统原有的值）
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Result<T>: Result where T:class
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
